package cn.jzq.spring.springioc.demo;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

/**
 * @author jzq
 * @date 2019/3/20 13:30
 */
@Repository
public class UserMapper implements UserDao {

    @Override
    public User getUserById(Integer id) {
        User user = new User();
        user.setId(id);
        user.setName("spring ioc");
        return user;
    }

    @Override
    public void deleteById(Integer id) {
    }
}
